<!-- +submit_msg+ the message that will appear on the button -->
<%= error_messages_for 'user' %>
<%= form_tag %>
<table>
  <tr>
    <td>User email:</td>
    <td><%= text_field("user", "name") %></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><%= password_field("user", "password") %></td>
  </tr>
  <tr>
    <td>Password confirmation:</td>
    <td><%= password_field("user", "password_confirmation") %></td>
  </tr>
  <tr>
    <td>Short name:</td>
    <td><%= text_field("user", "short", "size" => 4) %></td>
  </tr>
  <tr>
    <td>Your time zone</td>
    <td>
<% # Select using TZInfo timezone names such as "Europe - Amsterdam"
   # In the controller on submit you can then do 
   # @user.tz = TZInfo::Timezone.new(params[:user][:timezone_name])
%>
<%= time_zone_select 'user', 'timezone_name', TZInfo::Timezone.all.sort, :model => TZInfo::Timezone %></td>
  </tr>
  <tr>
    <td></td>
    <td><input type="submit" value="<%=submit_msg%>" /></td>
  </tr>
</table>
<%= end_form_tag %>
